package com.atyoung.youngmall.product.service;

import com.atyoung.youngmall.product.entity.AttrEntity;
import com.atyoung.youngmall.product.vo.AttrGroupWithAttrVo;
import com.atyoung.youngmall.product.vo.AttrRelationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atyoung.common.utils.PageUtils;
import com.atyoung.youngmall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author wen_chuang
 * @email wen_chuang@gmail.com
 * @date 2020-05-06 22:10:06
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params,Long catId);

    List<AttrEntity> queryAttrRelation(Long attrgroupId);

    void deleteAttrRelation(List<AttrRelationVo> attrRelationVo);

    PageUtils queryAttrNoRelation(Long attrgroupId, Map<String, Object> params);

    List<AttrGroupWithAttrVo> getAttrGroupWithAttrByCatelogId(Long catelogId);
}

